DFA Problems with clear explanation